package com.qx.chat.system.entity;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 好友分组
 * @author cyf
 *
 */
@Document(collection="qx_org_band")
public class Band extends Entity{

	private static final long serialVersionUID = 1105232553189953502L;
	@Id
	private String id;
	//组名
	private String name;
	//排序
	private int order;
	//成员
	@DBRef
	private List<User> members;
	//拥有者
	@DBRef
	private User owner;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	public List<User> getMembers() {
		return members;
	}
	public void setMembers(List<User> members) {
		this.members = members;
	}
	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
	
	
}
